#include "qmovetothread.h"

QMoveToThread::QMoveToThread()
{
    startFlag = false;
}

QMoveToThread::~QMoveToThread()
{

}

void QMoveToThread::setSwitch(bool flag)
{
    startFlag = flag;
}

void QMoveToThread::slot_moveToThread()
{
    while(startFlag)
    {
        qDebug()<<"QMoveToThread子线程号:"<<QThread::currentThread();
        QThread::msleep(1000);
    }
}
